package com.javaspeak.designpatterns.go4.creational.factorymethod;

/**
 * Factory Methods are createSquare() and createTriangle()
 *
 * @author John Dickerson
 */
public class ApplicationFactoryMethod {

    /**
     * Draws Shapes
     */
    public void draw(){

        Drawing drawing = new Drawing();
        drawing.createSquare().draw();
        drawing.createTriangle().draw();
    }


    /**
     * Main method
     *
     * @param args
     */
    public static void main(String[] args) {

        ApplicationFactoryMethod application = new ApplicationFactoryMethod();
        application.draw();
    }
}
